import request from '@/utils/request';

// 查询自提地址列表
export function listSelfmention(query) {
	return request({
		url: '/system/selfmention/list',
		method: 'post',
		data: query,
	});
}
// 查询自提地址列表
export function allListSelfmention() {
	return request({
		url: '/system/selfmention/allList',
		method: 'post',
	});
}

// 查询自提地址详细
export function getSelfmention(id) {
	return request({
		url: '/system/selfmention/getInfo',
		method: 'post',
		data: id,
	});
}

// 新增自提地址
export function addSelfmention(data) {
	return request({
		url: '/system/selfmention/add',
		method: 'post',
		data: data,
	});
}

// 编辑自提地址
export function updateSelfmention(data) {
	return request({
		url: '/system/selfmention/edit',
		method: 'post',
		data: data,
	});
}

// 删除自提地址
export function delSelfmention(id) {
	return request({
		url: '/system/selfmention/remove',
		method: 'post',
		data: { id: id },
	});
}

// 导出自提地址
export function exportSelfmention(query) {
	return request({
		url: '/system/selfmention/export',
		method: 'post',
		params: query,
	});
}
